import 'package:xinmubiao/http_manager.dart';

Future list(page) async {
  String url = "/base/daily/textbook_list?id=$page";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data']['result'];
  } catch (e) {
    print(e);
  }
}

Future detail(id) async {
  String url = "/base/daily/textbook_detail?id=$id";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}
